<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   首页
<div>
    用户信息:<br>
    用户名：<span th:text="${name}"></span><br>
    年龄:<span th:text="${age}"></span><br>
    电话：<span th:text="${phone}"></span>
</div>
<hr>
<div>
    用户对象数据:<br>
    用户名:<span th:text="${user.userName}"></span><br>
    电话:<span th:text="${user.phone}"></span><br>
    生日:<span th:text="${user.birthday}"></span>
</div>
<hr>
  成绩是否及格:<br>
   <span th:if="${grade >=60}">合格</span>
   <span th:if="${grade <60}">不合格</span>
 <hr>
  <table border="1"width="60%" cellspacing="0">
       <thead><tr><th>编号</th><th>姓名</th><th>电话</th><th>生日</th><th>删除</th></tr></thead>
      <tbody>
        <tr th:each="u:${list}">
            <td th:text="${u.id}"></td>
            <td th:text="${u.userName}"></td>
            <td th:text="${u.phone}"></td>
            <td th:text="${u.birthday}"></td>
            <td><a th:href="@{/del(id=${u.id})}">删除</a></td>
        </tr>
      </tbody>
  </table>
   <a style="margin-left: 10px" th:each="pg:${#numbers.sequence(1,totalPage)}" th:text="${pg}"
   th:href="@{/findAll(pageNo=${pg})}"></a>
  <hr>

</body>
</html>